package cn.stylefeng.guns.modular.rest;


import cn.hutool.core.date.DateUtil;
import cn.stylefeng.guns.modular.ht.model.params.ReportParam;
import cn.stylefeng.guns.modular.ht.service.ReportService;
import cn.stylefeng.guns.sys.modular.system.entity.User;
import cn.stylefeng.guns.sys.modular.system.service.UserService;
import cn.stylefeng.roses.core.base.controller.BaseController;
import cn.stylefeng.roses.core.reqres.response.ErrorResponseData;
import cn.stylefeng.roses.core.reqres.response.SuccessResponseData;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;


/**
 * 绑定控制器
 *
 * @author
 * @Date 2019-11-18 13:24:11
 */
@RestController
@RequestMapping("/gunsApi/report")
public class ApiNeedTokenReportController extends BaseController {
    @Autowired
    private ReportService reportService;

    /**
     * 绑定
     */
    @RequestMapping(value = "addItem")
    public Object addItem(ReportParam reportParam) {
        Map map = new HashMap();
        SuccessResponseData SUCCESS_TIP = new SuccessResponseData();

        reportService.add(reportParam);
        SUCCESS_TIP.setData(map);
        return SUCCESS_TIP;
    }

}


